package com.taobao.api.request;

import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.OmniorderStoreSdtcancelResponse;

/**
 * TOP API: taobao.omniorder.store.sdtcancel request
 * 
 * @author top auto create
 * @since 1.0, 2018.07.25
 */
public class OmniorderStoreSdtcancelRequest extends BaseTaobaoRequest<OmniorderStoreSdtcancelResponse> {
	
	

	/** 
	* 取号返回的packageId
	 */
	private Long packageId;

	public void setPackageId(Long packageId) {
		this.packageId = packageId;
	}

	public Long getPackageId() {
		return this.packageId;
	}

	public String getApiMethodName() {
		return "taobao.omniorder.store.sdtcancel";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("package_id", this.packageId);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<OmniorderStoreSdtcancelResponse> getResponseClass() {
		return OmniorderStoreSdtcancelResponse.class;
	}

	public void check() throws ApiRuleException {
		RequestCheckUtils.checkNotEmpty(packageId, "packageId");
	}
	

}